save To String
Serializes the current scene into a string. Selection is discarded. If a resource uri has a scheme that is not in allowedResourceSchemes, an exception will be thrown.
Return
a serialized scene string.
Parameters
the scene to serialize.
the list of allowed resource schemes in the scene.
Serializes the current scene into a string with optional compression. Selection is discarded. If a resource uri has a scheme that is not in options.allowedResourceSchemes, an exception will be thrown.
Return
a serialized scene string.
Parameters
the scene to serialize.
save options containing:
allowedResourceSchemes: The list of allowed resource schemes in the scene. Defaults to "blob", "bundle", "file", "http", "https".
compression: Optional compression settings containing:
format: Compression format (NONE or ZSTD). Defaults to NONE.
level: Compression level (FASTEST, DEFAULT, or BEST). Defaults to DEFAULT.